<?php
session_start();
set_include_path(get_include_path() . PATH_SEPARATOR . '.' . PATH_SEPARATOR . './libs/');
require_once('./libs/Smarty/Smarty.class.php');
require_once('./libs/classes/commentModel.class.php');
$a = new CommentModel();
$arr=array('comment_content'=>$_POST['content'],
						'comment_uid'=>$_SERVER['REMOTE_ADDR'],
						'comment_aid'=>$_POST['aid']);
$a->addpinglun($arr);
	echo '<meta http-equiv="refresh" content="0;url=./alog.php?id='.$_POST['aid'].'">';
?>